﻿using System.Collections.Generic;
using Microsoft.Office.Tools.Ribbon;
using System.Data;
using TemplateGenerator.Forms;

namespace TemplateGenerator {
	public partial class MainRibbon {
		private void MainRibbon_Load(object sender, RibbonUIEventArgs e) 
        {
            
		}		



		private void OpenValuesControl(object sender, RibbonControlEventArgs e) {
            ImportWindow import = new ImportWindow();
            import.OnImport += OnImport;
            import.Show();

		}

        private void OnImport(object sender, DataSet values)
        {

            GeneratorHandler.FormatDocument(values.Tables[0]);
        }

	}
}
